﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DAO;

namespace DAO
{
    public class LayDuLieuDAO
    {
        public static DataTable LayDuLieu( string tenBangDuLieu )
        {
            string command = "select * from " + tenBangDuLieu;

            DataTable tb = new DataTable();

           tb =  DaTaProvider.excecuteQuery( command );
           return tb;
        }

        public static bool KiemTraKetNoi()
        {
            return DaTaProvider.Checkconnect();
        }
    }
}
